package com.token.iot.bratterycharging.boss.web;

import java.util.Date;

public class OperDTO {
	private Long id;
	
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}

	private String userName;
	private String password;
	private String role;
	
	public String getRole() {
		return role;
	}
	public void setRole(String role) {
		this.role = role;
	}
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	
	static public void main(String[] args) {
		Date creatTime = new Date();
		try {
			Thread.sleep(2*60*1000);
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		Date now = new Date();
		System.out.println(now.getTime());
		System.out.println(creatTime.getTime());
		long diff =  now.getTime() - creatTime.getTime();
		long min = diff/(60*1000);
		System.out.println(min);
	}

}
